<style>
    .small {
        margin-top: 10px;
    }
</style>

                    
<div class="wrapper-md" ng-controller="UserOneCtrl">
    <div class="panel panel-default">
        <form form-validation>
        <div class="panel-body" style="padding: 40px;">
            <div class="form-horizontal">
                <div class="form-group">
                  <label>手机号</label>
                  <input required ng-model="item.account" type="text" class="form-control" placeholder="请输入注册手机号">
                </div>
                <div class="form-group">
                  <label>用户名</label>
                  <input required ng-model="item.name" type="text" class="form-control" placeholder="请输入用户名">
                </div>
                <div class="form-group" style="width: 500px;">
                  <label>头像</label>
                  <p ng-show="item.icon">
                    <img ng-src="{{item.icon}}" width="200" alt="">
                  </p>
                  <input type="file" nv-file-select="" uploader="uploader">
                  <p class="small">请上传大小在200k以内的图片；</p>
                </div>
                <div class="form-group">
                  <label>密码</label>
                  <input type="password" ng-model="item.pwd" style="width: 200px;" class="form-control" placeholder="请输入6位以上的密码">
                </div>
                <div class="form-group">
                  <label>角色</label>
                  <ui-select required style="width: 120px;" ng-model="item.role" theme="bootstrap">
                        <ui-select-match placeholder="请选择">{{$select.selected.name}}</ui-select-match>
                        <ui-select-choices repeat="item.id as item in mappers.role | filter: $select.search">
                          <span ng-bind-html="item.name"></span>
                        </ui-select-choices>
                  </ui-select>
                </div>
                <div class="form-group">
                  <label>企业名</label>
                  <input required ng-model="item.companyName" type="text" class="form-control" placeholder="请输入企业名">
                </div>
                <div class="form-group">
                  <label>联系电话</label>
                  <input required ng-model="item.phone" type="text" class="form-control" placeholder="请输入联系电话">
                </div>
                <div class="form-group">
                  <label>地点</label>
                    <div>
                        <ui-select required class="inline" style="width: 120px;" ng-model="model.l1" theme="bootstrap">
                            <ui-select-match placeholder="选择国家">{{model.l1.name}}</ui-select-match>
                            <ui-select-choices repeat="item in mappers.address | filter: $select.search">
                              <span ng-bind-html="item.name"></span>
                            </ui-select-choices>
                        </ui-select>
                        <ui-select required class="inline" style="width: 120px;" ng-model="model.l2" theme="bootstrap">
                            <ui-select-match placeholder="选择省">{{model.l2.name}}</ui-select-match>
                            <ui-select-choices repeat="item in model.l1.childs | filter: $select.search">
                              <span ng-bind-html="item.name"></span>
                            </ui-select-choices>
                        </ui-select>
                        <ui-select required class="inline" style="width: 120px;" ng-model="model.l3" theme="bootstrap">
                            <ui-select-match placeholder="选择市">{{model.l3.name}}</ui-select-match>
                            <ui-select-choices repeat="item in model.l2.childs | filter: $select.search">
                              <span ng-bind-html="item.name"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group">
                  <button ng-disabled="form.$invalid" ng-click="submit()" type="submit" class="btn btn-primary">保存并发布</button>
                  <a href="#/app/user/list" class="btn btn-primary">返回</a>
                </div>
            </div>
        </div>
        </form>
    </div>
</div>